api basics